Skip to content


ai  101  pytorch  classification  nvidia  cuda  install  tensorrt  yolo  ardupilot  None  ros2  dds  micro ros  xrce  sitl  plugin  SITL  debug  rangefinder  pymavlink  mavros  gazebo  distance sensor  system_time  timesync  cmake  gtest  ctest  cpp  c++  format  fmt  multithreading  spdlog  camera  coordinate system  orb  matching  opencv  build  transformation  computer vision  homography  optical flow  of  trackers  cv  cyclonedds  eprosima  fastdds  simulation  config  ignition  bridge  sdf  tips  ign-transport  sensors  lidar  aptly  apt  encryption  pgp  docker  git  bundle  github  hooks  pre-commit  lxd  container  lxc  x11  profile  vscode  marpit  presentation  marp  markdown  mermaid  video  ffmpeg  gstreamer  cheat-sheet  sdp  v4l2loopback  gi  snippets  cheat Sheet  python  asyncio  future  click  cli  numpy  project  template  black  isort  docs  project document  docstrings  flake8  linter  git-hook  mypy  unittest  pytest  pylint  mock  iterator  generator  logging  tuple  namedtuple  typing  annotation  pyzmq  zmq  msgpack  action  namespace  remap  control2  ros2_control  gdb  qos  tag  plugins  msg  node  zero-copy  shm  tutorial  algorithm  calibration  diff  pid  dev  colcon  colcon_cd  rpi  arm  qemu  settings  behavior  plot  visualization  debugging  diagnostic  diagnostics  tutorials  gst  math  apm  rat_runtime_monitor  web  rosbridge  vue  binding  discovery  gazebo-classic  launch  spawn  cook  gps  imu  ray  gazebo_ros_ray_sensor  ultrsonic  range  ultrasonic  gazebo classic  wrench  effort  odom  ign  gz  xacro  ros_ign  diff_drive  odometry  joint_state  argument  OpaqueFunction  DeclareLaunchArgument  LaunchConfiguration  tmux  nav  slam  test  rclpy  executor  MultiThreadedExecutor  SingleThreadedExecutor  param  dynamic-reconfigure  service  client  setup.py  package.xml  parameter  parameters  custom  msgs  executers  pub  sub  rqt  rviz  rviz2  pose  marker  tf2  deb  package  setup  local_setup  rosdep  package manager  project settings  vcstool  cross-compiler  nano  texture  tmuxp  rootfs  embedded  zah  linux  rm  ubuntu  ip  ss  network  netstat  snap  deploy  ssh  systemd  mkdocs  extensions  socat  networking  serial  udp  tc  mtu  select  px4  robotics  kalman_filter  kalman  filter  control  todo  vscode-ext  json  yaml  schema  yocto  poky  world  gazebo_ros2_control  position_controller  effort_controller  velocity_controller  urdf  gazebo_ros_force  gazebo_ros_joint_state_publisher  robot_state_publisher  joint_state_publisher  projects  vrx  buoyancy 

Ignition ROS2


Table of Content

ros ign bridge#

ros_ign contains packages that provide integration between ROS2 and Ignition:

  • ros_ign: Metapackage that provides all other software packages;
  • ros_ign_image: Use image_transport to transfer the image from Ignition to the one-way transmission bridge of ROS;
  • ros_ign_bridge: Two-way transmission bridge between Ignition and ROS;
  • ros_ign_gazebo: It is convenient to use the startup files and executable files of Ignition Gazebo and ROS;
  • ros_ign_gazebo_demos: Demos using ROS-Ignition integration;
  • ros_ign_point_cloud: A plug-in used to simulate publishing point clouds to ROS from Ignition Gazebo

install#

sudo apt install ros-humble-ros-gz

usage#

  • launch file that run node for each mapping
  • The launch file included by parent launch file that run ignition and spawn the robot
project
├── CMakeLists.txt
├── config
│   ├── ekf.yaml
│   └── nav2_params.yaml
├── launch
│   ├── display.launch.py
│   └── sam_bridge.launch.py
├── package.xml
├── README.md
├── rviz
│   └── urdf_config.rviz
├── src
│   └── description
│       └── sam_bot_description.urdf
└── world
    ├── ign_world.sdf
    └── my_world.sdf
gazebo, spawn, bridge
# Gazebo Sim
gazebo = IncludeLaunchDescription(
    PythonLaunchDescriptionSource(
        os.path.join(pkg_ros_gz_sim, 'launch', 'gz_sim.launch.py')
    ),
    launch_arguments={'gz_args': f'-r {world_path}'}.items(),
)

#spawn
spawn_entity = Node(
    package='ros_gz_sim',
    executable='create',
    arguments=[
        '-name', 'sam_bot',
        '-topic', 'robot_description',
        '-z', '0.5'
    ],
    output='screen',
)

#bridge
ign_bridge = IncludeLaunchDescription(
    PythonLaunchDescriptionSource(
        os.path.join(pkg_share, 'launch', BRIDGE_FILE_NAME),
    ),
    launch_arguments={
        'use_sim_time': "True"}.items()
)

Reference#